import { ref } from 'vue'

export default function useState(initValue = false) {
    const state = ref(initValue)

    const setState = (value: boolean) => {
        state.value = value
    }

    return {
        state,
        setState
    }
}
